Fork me on GitHub

Now on: joopl.Type

Available since 2.3.0

Represents type information and provides access to types' metadata.

Methods

getAttribute

(
  • An
)
joopl.Attribute

Defined in src\joopl.js:925

Gets an attribute instance by giving its type, if the type has the whole attribute

Parameters:

Returns:

joopl.Attribute:

The attribute instance or null if the type does not have the given attribute type

Example:

myNamespace.MyClass.type.getAttribute(this.MyAttribute);

hasAttribute

(
  • The
)

Defined in src\joopl.js:953

Determines whether a given type has an attribute giving its class (rather than giving an instance!)

Parameters:

Example:

this.SomeClass.type.hasAttribute(SomeAttribute);

Properties

attributes

joopl.Attribute

Defined in src\joopl.js:914

Gets all type's attributes.

baseType

joopl.Type

Defined in src\joopl.js:892

Gets current base type (i.e. parent class) metadata.

baseType

joopl.Namespace

Defined in src\joopl.js:903

Gets current namespace instance

fullName

String

Defined in src\joopl.js:881

Gets current type name including full namespace path (f.e. "joopl.test.MyClass")

name

String

Defined in src\joopl.js:870

Gets type name (f.e. "MyClass")